package com.epam.employeebase.util;

import java.util.ResourceBundle;

public final class ResourceManager {
	private static final String BUNDLE_NAME = "resources.ApplicationResources";
	private static ResourceBundle resourceBundle = ResourceBundle.getBundle(BUNDLE_NAME);
	public static final String LIST_PAGE_PATH = "path.employelist";
	public static final String MAIN_PAGE_PATH = "path.main";
	public static final String DB_URL = "db.url";
	public static final String DB_USERNAME = "db.username";
	public static final String DB_PASSWORD = "db.password";
	public static final String DB_POOL_MAX_ACTIVE = "db.pool.maxactive";
	public static final String DB_POOL_MAX_IDLE = "db.pool.maxidle";
	public static final String DB_DRIVER = "db.driver";
	
	private ResourceManager(){}
	
	public static String getProperty(String key){
		return resourceBundle.getString(key);
	}
}
